Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |get

std/data/map::|get


Usage

|get<T>(map, key)

Generics

◻ T (any)

Parameters

↳ map: Map (std/data/map::Map)
↳ key: string

Return

Option<T>


Look up key in map and return its value as Option<T>, or none if the key is absent or the stored value is of a different type.